<div class="aw-top-menu-wrap" id="bbs">
    <div class="container">
        <!-- 用户栏 -->
        <div class="aw-user-nav">
            {{if user}}
            <a href="" class="aw-user-nav-dropdown">
                <span>你好：{{user.username}}</span>
            </a>
            <div class="aw-dropdown dropdown-list pull-right">
                <ul class="aw-dropdown-list">
                    <li><a href="/user/layout"><i class="icon icon-logout"></i> 退出</a></li>
                </ul>
            </div>
            <!-- 登陆&注册栏 -->
            {{else}}
            <span>
                <a href="/user/register" class="register btn btn-normal btn-success" href="">注册</a>
                <a href="/user/login" class="login btn btn-normal btn-primary" href="">登录</a>
            </span>
            {{/if}}
            <!-- end 登陆&注册栏 -->
        </div>
        <!-- end 用户栏 -->
    </div>
</div>

<!-- {{block "vuex"}}

<script>
    new Vue({
        el:"#bbs",
        data: {
           islogin:false,
           username:""
        },
        methods: {
            getisLogin(){
                let _this = this;
                axios.get('/user/islogin', {
                    params: {
                    }
                })
                .then(function (response) {
                    let {data,msg,erron} = (response.data);
                    if(!erron){
                        _this.islogin = true;
                        _this.username = data.username;
                    }
                })
                .catch(function (error) {
                    console.log(error);
                });
            }
        },
        created() {

        },
    
    })
</script>
        
{{/block}}        -->